//
//  BwhcViewCell.m
//  YiqiMobile
//
//  Created by henry on 13-4-6.
//  Copyright (c) 2013年 henry. All rights reserved.
//

#import "GonggaoListViewcell.h"
#import "Config.h"
#import "Utility.h"

@implementation GonggaoListViewcell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.selectionStyle=UITableViewCellSelectionStyleGray;
        self.backgroundColor=[UIColor colorWithRed:249.0/255 green:249.0/255 blue:249.0/255 alpha:1.0];
                
        UIImageView *arrowImageView=[[UIImageView alloc] initWithFrame:CGRectMake(280, 12, 19, 19)];
        arrowImageView.image=[Utility imageNamed:@"homepageCellarrow.png"];
        [self addSubview:arrowImageView];
        
        //标题
        self.titleLabel=[self detailTextLabel:CGRectMake(10, 12, 240, 20) andFontSize:15.0f];
        self.titleLabel.textColor=UIColorFromRGB(0x555555);
        [self addSubview:self.titleLabel];
    }
    return self;
}

-(UILabel *) detailTextLabel:(CGRect) rect  andFontSize:(float) fontsize{
    UIFont *font=[UIFont fontWithName:FONT_FAMILY size:fontsize];
    UILabel *labeltemp=[[UILabel alloc] initWithFrame:rect];
    labeltemp.font=font;
    labeltemp.backgroundColor=[UIColor clearColor];
    return labeltemp;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
       
    // Configure the view for the selected state
}
@end
